package com.cloudstreamservice8002.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudstreamservice8002.entity.DeliveryInfo;
import com.cloudstreamservice8002.param.DeliverInfoCreatOrUpdateParam;


import java.util.List;

/**
* @author 26407
* @description 针对表【delivery_info】的数据库操作Service
* @createDate 2025-06-11 00:42:49
*/
public interface DeliveryInfoService extends IService<DeliveryInfo> {


    /**
     * 获取配送信息
     */
    IPage<DeliveryInfo> getDeliveryInfoList(Integer pageNum, Integer pageSize);


    /**
     * 创建配送信息
     */
    Boolean create(DeliverInfoCreatOrUpdateParam deliveryInfo);

    /**
     * 修改配送信息
     * @param deliveryInfo
     * @return
     */
    Boolean updates(DeliverInfoCreatOrUpdateParam deliveryInfo);

    /**
     * 根据订单编号删除配送信息
     * @param orderNumber
     * @return
     */
    boolean removeByNumber(String orderNumber);

    /**
     * 根据订单状态查询配送信息
     */
    IPage<DeliveryInfo> listByStatus(Integer status,Integer pageNum, Integer pageSize);

    /**
     * 根据订单编号查询配送信息
     */
    DeliveryInfo getByOrderNumber(String orderNumber);

}
